--锈迹狂风
local xiujikuangfeng = fk.CreateSkill {
    name = "mcdh_xiujikuangfeng",
}

local U = require "packages/utility/utility"
local lib = require "packages/mcdh/lib"

xiujikuangfeng:addEffect(fk.TargetSpecified,{
    can_trigger = function (self, event, target, player, data)
            return player:hasSkill(self) and player == target and data.card.trueName == "slash" and data.firstTarget
    end,
    on_use = function (self, event, target, player, data)
        local room = player.room
        data.use.disresponsiveList = data.use.disresponsiveList or {}
        table.insertTableIfNeed(data.use.disresponsiveList,data:getAllTargets())
        data.from:drawCards(1,self.name)
    end
})

xiujikuangfeng:addEffect(fk.TargetConfirmed,{
    can_trigger = function (self, event, target, player, data)
        return player:hasSkill(self) and player == target and data.card.trueName == "slash"
    end,
    on_use = function (self, event, target, player, data)
        local room = player.room
        data.use.disresponsiveList = data.use.disresponsiveList or {}
        table.insertIfNeed(data.use.disresponsiveList, player)
        data.from:drawCards(1,self.name)
    end
})

Fk:loadTranslationTable {
    ["mcdh_xiujikuangfeng"] = "锈迹狂风",
    [":mcdh_xiujikuangfeng"] = "锁定技。当你使用【杀】指定目标后，或你成为【杀】的目标后，令此【杀】使用者摸一张牌，然后目标角色不能响应此【杀】。",
}

return xiujikuangfeng